package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.AppointmentSettingVO;import com.lanchetech.entity.AppointmentSetting;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface AppointmentSettingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppointmentSetting record);

    int insertSelective(AppointmentSetting record);

    AppointmentSetting selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AppointmentSetting record);

    int updateByPrimaryKey(AppointmentSetting record);

    List<AppointmentSettingVO> findAllPage(PageReq req);

    List<AppointmentSetting> findAllByIds(@Param("ids") List<Long> ids);

    List<AppointmentSetting> findAllBySpuIds(@Param("spuIds") List<Long> spuIds);

    AppointmentSetting findOneBySpuIdAndShopId(@Param("spuId") Long spuId, @Param("shopId") Long shopId);

    AppointmentSetting findOneBySpuId(@Param("spuId") Long spuId);

    int updateDeletedBySpuId(@Param("updatedDeleted")Byte updatedDeleted,@Param("spuId")Long spuId);
}